<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

    <title> - 登录</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link href="/static/admin/css/bootstrap.min.css" rel="stylesheet">
    <link href="/static/admin/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="/static/admin/css/animate.css" rel="stylesheet">
    <link href="/static/admin/css/style.css" rel="stylesheet">
    <link href="/static/admin/css/login.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>
        if (window.top !== window.self) {
            window.top.location = window.location;
        }
    </script>

</head>

<body class="signin">
    <div class="signinpanel">
        <div class="row">
            <div class="col-sm-12">
                <form class="layui-form" method="post" action="">
                    <h2 class="no-margins">{{.Config.SiteTitle}}后台</h2>
                    <input type="text" name="username" class="form-control uname" placeholder="用户名" />
                    <input type="password" name="password"  class="form-control pword m-b" placeholder="密码" />
                    <a href="">忘记密码了？</a>
                    <button lay-filter="formDemo" lay-submit class="btn btn-success btn-block">登录</button>
                </form>
            </div>
        </div>
        <div class="signup-footer">
            <div class="pull-left">
                &copy; hAdmin
            </div>
        </div>
    </div>
</body>
<script type="text/javascript" src="/static/static/layui/layui.js"></script>
<script>
    layui.use(["form", "layer", "jquery"], function () {
        let form = layui.form,
            layer = layui.layer,
            $ = layui.jquery;

        form.on('submit(formDemo)', function(data){
            layer.msg(JSON.stringify(data.field));
            $.ajax({
                url: "",
                type: "post"
            });
            return false;
        });
    })
</script>
</html>
